import scrapy
import sys
sys.path.append('..')
# from acad_horizon_spiders.utils import jsonbd_util
from utils import basic_util,jsonbd_util
from urllib import parse

one=jsonbd_util.get_alldata("assay_detail1.json")
two=jsonbd_util.get_alldata("assay_detail2.json")
list_temp=one.get("assay_detail")+two.get("assay_detail")
list_temp=sorted(list_temp, key=lambda x: x['id'])
jsonbd_util.update("assay_detail2.json","assay_detail",list_temp)
# json.dump(one,file,ensure_ascii=False,indent=2)